import { configureStore } from '@reduxjs/toolkit';
import userReducer from './slices/userSlice';
import memberReducer from './slices/memberSlice';
import materialReducer from './slices/materialSlice';
import borrowReducer from './slices/borrowSlice'
export const store = configureStore({
  reducer: {
    user: userReducer,
    member: memberReducer,
    material: materialReducer,
    borrow: borrowReducer
  },
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;